how to draw input and output device